/**
 * kl yy-ds @2021
 */
package com.cxps.server.config;

import com.cxps.server.utils.SecurityUtil;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.annotation.Configuration;

/**
 * 接口保护类
 *
 * @author YouCai.Liu
 * @since 2021/11/9
 * ...
 */
@Configuration
public class OrderSecurityConfig implements BeanFactoryPostProcessor {

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {

        // 白名单
        SecurityUtil.WHITE_LIST.add("/order/updateOrderStatus");
        SecurityUtil.WHITE_LIST.add("/order/submit");

    }
}